package com.rongx.reggie.common;

//用户上下文父类
public class BaseContext {
    //用于线程隔离
    private static final  ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setCurrentId(Long id) {
        threadLocal.set(id);
    }
    public static Long getCurrentId() {
        return threadLocal.get();
    }

}
